﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DFGK_WMS.Model.Models
{
    /// <summary>
    /// 物料分类表
    /// </summary>
    [Table("T_MaterialCategory")]
    public class MaterialCategory:BaseEntity
    {
        /// <summary>
        /// 分类名称
        /// </summary>
        [MaxLength(20)]
        public string Name { get; set; }

        /// <summary>
        /// 编码
        /// </summary>
        [MaxLength(50)]
        public string Code { get; set; }

        /// <summary>
        /// 备注(物料描述)
        /// </summary>
        [MaxLength(50)]
        public string Remark { get; set; }    

        /// <summary>
        /// 上级分类
        /// </summary>
        public long? ParentId { get; set; }

        /// <summary>
        /// 排序号
        /// </summary>
        public int? DisplayOrder { get; set; }
      
     
        /// <summary>
        /// 叶子节点  
        /// </summary>
        public bool IsLeaf { get; set; }
    }
}
